package com.ryan.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ryan.order.entity.PayLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 支付日志表 服务类
 * </p>
 *
 * @author ryan
 * @since 2020-07-31
 */
public interface PayLogService extends IService<PayLog> {

    Page<PayLog> getOrderList(long pageIndex, long pageSize, String orderNo);

    Map<String, Object> createNative(String orderNo);

    /**
     * 查询订单状态
     * @param orderNo
     * @return
     */
    Map<String,String> queryOrderStatus(String orderNo);

    /**
     * 支付成功后，更新订单支付状态
     * @param map
     */
    void updatePayStatus(Map<String, String> map);
}
